/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class TestDemo {
    public static void main(String[] args) {
        int[] array = new int[100];
        int[] array1 =assign(array);
        for (int i = 0; i < 100; i++) {
            System.out.print(array1[i]+" ");
        }
    }

    public static int[] assign(int[] array){
        for (int i = 0; i < 100; i++) {
            array[i] = i+1 ;
        }
        return array;
    }
}
